package com.lanchetech.dao;

import com.lanchetech.bean.request.PageReq;import com.lanchetech.bean.vo.ConsumptionAmountVO;import com.lanchetech.entity.ConsumptionAmount;
import org.apache.ibatis.annotations.Mapper;import org.apache.ibatis.annotations.Param;import java.util.List;

@Mapper
public interface ConsumptionAmountMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ConsumptionAmount record);

    int insertSelective(ConsumptionAmount record);

    ConsumptionAmount selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ConsumptionAmount record);

    int updateByPrimaryKey(ConsumptionAmount record);

    ConsumptionAmount findOneByUserId(@Param("userId") Long userId);

    List<ConsumptionAmountVO> findAllPage(PageReq req);
}